/* Copyright (c) 2025 Beijing Semidrive Technology Corporation
 * SPDX-License-Identifier: Apache-2.0
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/** *****************************************************************************************************
 *  \file     Dio_Fault.h                                                                               *
 *  \brief    This file contains interface header for DIO Fault injection.                              *
 *                                                                                                      *
 * <table>                                                                                              *
 * <tr><th>Date           <th>Version                                                                   *
 * <tr><td>2023/08/15     <td>1.0.0                                                                     *
 * </table>                                                                                             *
 *******************************************************************************************************/

#ifndef DIO_FAULT_H
#define DIO_FAULT_H

#ifdef __cplusplus
extern "C" {
#endif
/********************************************************************************************************
 *                                 Global Macro definition                                              *
 *******************************************************************************************************/

#if !defined(DIO_FAULT_INJECTION)
/** \brief  FUNCTION:Irq_handler fault injection. */
#define DioHook_Dio_UnexpectedInterruption()
#define DioHook_Dio_IrqTime()
#define DioHook_Dio_InterruptionError(errorId)
#else
#include "Dio_UserFault.h"
#endif /* #if !defined(DIO_FAULT_INJECTION) */

#ifdef __cplusplus
}
#endif

#endif /* DIO_FAULT_H */
/* End of file */
